package org.osiris.client.riesgos;

import com.google.gwt.user.client.ui.PopupPanel;
import com.extjs.gxt.ui.client.widget.VerticalPanel;
import com.extjs.gxt.ui.client.widget.HorizontalPanel;
import com.extjs.gxt.ui.client.widget.form.LabelField;
import com.extjs.gxt.ui.client.widget.form.TextField;
import com.extjs.gxt.ui.client.widget.form.HtmlEditor;
import com.extjs.gxt.ui.client.widget.button.Button;

public class AltaRiesgo extends PopupPanel {

	public AltaRiesgo() {
		super(true);
		
		VerticalPanel verticalPanel = new VerticalPanel();
		
		HorizontalPanel horizontalPanel = new HorizontalPanel();
		horizontalPanel.setSpacing(5);
		
		LabelField lblfldNombre = new LabelField("Nombre");
		horizontalPanel.add(lblfldNombre);
		
		TextField textField = new TextField();
		horizontalPanel.add(textField);
		textField.setFieldLabel("New TextField");
		verticalPanel.add(horizontalPanel);
		horizontalPanel.setWidth("300");
		
		HorizontalPanel horizontalPanel_1 = new HorizontalPanel();
		horizontalPanel_1.setSpacing(5);
		
		LabelField lblfldReferencia = new LabelField("Referencia");
		horizontalPanel_1.add(lblfldReferencia);
		
		TextField textField_1 = new TextField();
		horizontalPanel_1.add(textField_1);
		textField_1.setFieldLabel("New TextField");
		verticalPanel.add(horizontalPanel_1);
		
		HorizontalPanel horizontalPanel_2 = new HorizontalPanel();
		horizontalPanel_2.setSpacing(5);
		
		LabelField lblfldFechaAlta = new LabelField("Fecha alta");
		horizontalPanel_2.add(lblfldFechaAlta);
		
		TextField textField_2 = new TextField();
		horizontalPanel_2.add(textField_2);
		textField_2.setFieldLabel("New TextField");
		verticalPanel.add(horizontalPanel_2);
		
		HorizontalPanel horizontalPanel_3 = new HorizontalPanel();
		horizontalPanel_3.setSpacing(5);
		
		LabelField lblfldUsuarioAlta = new LabelField("Usuario alta");
		horizontalPanel_3.add(lblfldUsuarioAlta);
		
		TextField textField_3 = new TextField();
		horizontalPanel_3.add(textField_3);
		textField_3.setFieldLabel("New TextField");
		verticalPanel.add(horizontalPanel_3);
		
		HorizontalPanel horizontalPanel_4 = new HorizontalPanel();
		
		LabelField lblfldDescripcin = new LabelField("Descripci\u00F3n");
		horizontalPanel_4.add(lblfldDescripcin);
		verticalPanel.add(horizontalPanel_4);
		
		HorizontalPanel horizontalPanel_5 = new HorizontalPanel();
		
		HtmlEditor htmlEditor = new HtmlEditor();
		horizontalPanel_5.add(htmlEditor);
		htmlEditor.setSize("300", "300");
		htmlEditor.setFieldLabel("New HtmlEditor");
		verticalPanel.add(horizontalPanel_5);
		
		HorizontalPanel horizontalPanel_6 = new HorizontalPanel();
		horizontalPanel_6.setSpacing(5);
		
		Button btnCancelar = new Button("Cancelar");
		horizontalPanel_6.add(btnCancelar);
		
		Button btnGuardar = new Button("Guardar");
		horizontalPanel_6.add(btnGuardar);
		
		Button btnModificar = new Button("Modificar");
		horizontalPanel_6.add(btnModificar);
		verticalPanel.add(horizontalPanel_6);
		setWidget(verticalPanel);
		verticalPanel.setSize("304px", "483px");
	}

}
